package com.mycat.chat.two.handle.base;

/**
 * 提供消息处理方法
 *
 * @author roger.
 * @email 190642964@qq.com
 * @create 2017-02-24
 */
public class Context {

    private MessageHandle messageHandle;

    public Context(MessageHandle messageHandle){
        this.messageHandle = messageHandle;
    }

    public void actionHandle(){
        this.messageHandle.handle(this);
    }

    public MessageHandle getMessageHandle() {
        return messageHandle;
    }

    public void setMessageHandle(MessageHandle messageHandle) {
        this.messageHandle = messageHandle;
    }
}
